/**
 * AuthAdmin 数据接口请求封装类
 */
class EsxdmAuthAdminApi {
    /**
    * 接口地址配置
    */
    static UrlCfg = {
        list: '/api/admin/esxdm-auth-admin/list',
        read: '/api/admin/esxdm-auth-admin/read',
        save: '/api/admin/esxdm-auth-admin/save',
        delete: '/api/admin/esxdm-auth-admin/delete',
        copy: '/api/admin/esxdm-auth-admin/copy',
        profile: '/api/admin/esxdm-auth-admin/profile',
    }

    /**
     * 返回一条数据
     */
    static async getData(id) {
        return await vui365.stdAxios(EsxdmAuthAdminApi.UrlCfg.read, { id: id });
    }
    /**
     * 返回列表数据
     */
    static async getList(param) {
        return await vui365.stdAxios(EsxdmAuthAdminApi.UrlCfg.list, param);
    }
    /**
     * 保存数据
     */
    static async saveData(formData) {
        return await vui365.stdAxios(EsxdmAuthAdminApi.UrlCfg.save, formData);
    }
    /**
     * 复制数据
     */
    static async copyData(id) {
        return await vui365.stdAxios(EsxdmAuthAdminApi.UrlCfg.copy, { id: id });
    }
    /**
     * 删除数据
     */
    static async deleteData(id) {
        return await vui365.stdAxios(EsxdmAuthAdminApi.UrlCfg.delete, { id: id }, "DELETE");
    }
    /**
     * 返回一条数据
     */
    static async getProfile() {
        return await vui365.stdAxios(EsxdmAuthAdminApi.UrlCfg.profile);
    }
}
